projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb7ef6
)
comment last change
author
Ken Raeburn
<raeburn@raeburn.org>
Sun, 21 Jul 2002 14:11:55 +0000
(14:11 +0000)
committer
Ken Raeburn
<raeburn@raeburn.org>
Sun, 21 Jul 2002 14:11:55 +0000
(14:11 +0000)
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index bf1b49e6ff481815815bfaf2ac768e031023e7a2..fd2de4a2408e0ed1189ffbcc65bc5ad13df50003 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-4669,7
+4669,11
@@
mmap_realloc (var, nbytes)
else if (room - nbytes >= mmap_page_size)
{
/* Shrinking by at least a page. Let's give some
- memory back to the system. */
+ memory back to the system.
+
+ The extra parens are to make the division happens first,
+ on positive values, so we know it will round towards
+ zero. */
mmap_enlarge (r, - ((room - nbytes) / mmap_page_size));
result = *var;
r->nbytes_specified = nbytes;